home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 830 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: familynews.cycor.ca!usenet
  2. From: gdskelho@peinet.pe.ca (Greg Skelhorn)
  3. Newsgroups: comp.lang.c++
  4. Subject: [Q] Optimizing size of DOS EXE with Borland C++ v4.5
  5. Date: 7 Jan 1996 17:57:13 GMT
  6. Organization: Cycor Communications Inc., Coast to Coast Internet Services
  7. Message-ID: <4cp1hp$b9j@bud.peinet.pe.ca>
  8. NNTP-Posting-Host: ss-as09.peinet.pe.ca
  9. X-Newsreader: WinVN 0.92.6
  10.  
  11. Hello,
  12.  
  13. I recently downloaded a package: Interrupt Service Class (ISC366
  14. by Ofer Laor) and have been playing around with the examples.
  15.  
  16. My problem is the executables I generate are 3 to 4 times the size
  17. of those provided.  I have read my compiler manuals and turned off
  18. debugging info, optimized for size, and stripped symbol tables
  19. and now I am out of ideas.
  20.  
  21. Have I missed some compiler or linker options?
  22.  
  23. The documentation says the examples were compiled with Borland C++
  24. v 3, is there any notable differences with the size of the run-time
  25. or standard libraries?  The examples are quite simple and do not make
  26. use of many library functions.
  27.  
  28. The object files I generate seem appropriate in size but the linked
  29. .exe is enormous. ie: one example provided is 9120 bytes and mine
  30. is 33290 bytes.
  31.  
  32. Any help would be appreciated, thanks.
  33.  
  34. Greg Skelhorn
  35. gdskelho@peinet.pe.ca
  36.